<?php

namespace ali\easysdk\fund\trans\Models;

use AlibabaCloud\Tea\Model;

class AlipayFundTransUniTransferResponse extends Model {
    protected $_name = [
        'out_biz_no' => 'out_biz_no',
        'order_id' => 'order_id',
        'pay_fund_order_id' => 'pay_fund_order_id',
        'status' => 'status',
        'trans_date	' => 'trans_date',
    ];
    public function validate() {
        Model::validateRequired('out_biz_no', $this->out_biz_no, true);
        Model::validateRequired('order_id', $this->order_id, true);
        Model::validateRequired('pay_fund_order_id', $this->pay_fund_order_id, true);
        Model::validateRequired('status', $this->status, true);
        Model::validateRequired('trans_date', $this->trans_date, true);
    }
    public function toMap() {
        $res = [];
        if (null !== $this->out_biz_no) {
            $res['out_biz_no'] = $this->out_biz_no;
        }
        if (null !== $this->order_id) {
            $res['order_id'] = $this->order_id;
        }
        if (null !== $this->pay_fund_order_id) {
            $res['pay_fund_order_id'] = $this->pay_fund_order_id;
        }
        if (null !== $this->status) {
            $res['status'] = $this->status;
        }
        if (null !== $this->trans_date) {
            $res['trans_date'] = $this->trans_date;
        }
        return $res;
    }
    /**
     * @param array $map
     * @return AlipayFundTransUniTransferResponse
     */
    public static function fromMap($map = []) {
        $model = new self();
        if(isset($map['out_biz_no'])){
            $model->out_biz_no = $map['out_biz_no'];
        }
        if(isset($map['order_id'])){
            $model->order_id = $map['order_id'];
        }
        if(isset($map['pay_fund_order_id'])){
            $model->pay_fund_order_id = $map['pay_fund_order_id'];
        }
        if(isset($map['status'])){
            $model->status = $map['status'];
        }
        if(isset($map['trans_date'])){
            $model->trans_date = $map['trans_date'];
        }
        return $model;
    }

    /**
     * @description 商户订单号，字符串形式
     * @var string
     */
    public $out_biz_no;

    /**
     * @description 支付宝转账订单号
     * @var string
     */
    public $order_id;

    /**
     * @description 支付宝支付资金流水号
     * @var string
     */
    public $pay_fund_order_id;

    /**
     * @description 转账单据状态。
     * @var string
     */
    public $status;

    /**
     * @description 订单支付时间，格式为yyyy-MM-dd HH:mm:ss
     * @var string
     */
    public $trans_date;

}
